package com.dime.physical.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dime.physical.mapper.DimeInquiryradiationoccupationsMapper;
import com.dime.physical.domain.DimeInquiryradiationoccupations;
import com.dime.physical.service.IDimeInquiryradiationoccupationsService;

/**
 * 问诊放射职业史Service业务层处理
 * 
 * @author Tiny
 * @date 2023-10-07
 */
@Service
public class DimeInquiryradiationoccupationsServiceImpl implements IDimeInquiryradiationoccupationsService 
{
    @Autowired
    private DimeInquiryradiationoccupationsMapper dimeInquiryradiationoccupationsMapper;

    /**
     * 查询问诊放射职业史
     * 
     * @param id 问诊放射职业史主键
     * @return 问诊放射职业史
     */
    @Override
    public DimeInquiryradiationoccupations selectDimeInquiryradiationoccupationsById(String id)
    {
        return dimeInquiryradiationoccupationsMapper.selectDimeInquiryradiationoccupationsById(id);
    }

    /**
     * 查询问诊放射职业史列表
     * 
     * @param dimeInquiryradiationoccupations 问诊放射职业史
     * @return 问诊放射职业史
     */
    @Override
    public List<DimeInquiryradiationoccupations> selectDimeInquiryradiationoccupationsList(DimeInquiryradiationoccupations dimeInquiryradiationoccupations)
    {
        return dimeInquiryradiationoccupationsMapper.selectDimeInquiryradiationoccupationsList(dimeInquiryradiationoccupations);
    }

    /**
     * 新增问诊放射职业史
     * 
     * @param dimeInquiryradiationoccupations 问诊放射职业史
     * @return 结果
     */
    @Override
    public int insertDimeInquiryradiationoccupations(DimeInquiryradiationoccupations dimeInquiryradiationoccupations)
    {
        dimeInquiryradiationoccupations.setCreateTime(DateUtils.getNowDate());
        return dimeInquiryradiationoccupationsMapper.insertDimeInquiryradiationoccupations(dimeInquiryradiationoccupations);
    }

    /**
     * 修改问诊放射职业史
     * 
     * @param dimeInquiryradiationoccupations 问诊放射职业史
     * @return 结果
     */
    @Override
    public int updateDimeInquiryradiationoccupations(DimeInquiryradiationoccupations dimeInquiryradiationoccupations)
    {
        dimeInquiryradiationoccupations.setUpdateTime(DateUtils.getNowDate());
        return dimeInquiryradiationoccupationsMapper.updateDimeInquiryradiationoccupations(dimeInquiryradiationoccupations);
    }

    /**
     * 批量删除问诊放射职业史
     * 
     * @param ids 需要删除的问诊放射职业史主键
     * @return 结果
     */
    @Override
    public int deleteDimeInquiryradiationoccupationsByIds(String[] ids)
    {
        return dimeInquiryradiationoccupationsMapper.deleteDimeInquiryradiationoccupationsByIds(ids);
    }

    /**
     * 删除问诊放射职业史信息
     * 
     * @param id 问诊放射职业史主键
     * @return 结果
     */
    @Override
    public int deleteDimeInquiryradiationoccupationsById(String id)
    {
        return dimeInquiryradiationoccupationsMapper.deleteDimeInquiryradiationoccupationsById(id);
    }
}
